const HMKEY = 'heima-toutiao'

/* 存token */
function saveToken(obj){
    localStorage.setItem(HMKEY,JSON.stringify(obj))
}

/* 取token */
function getToken(){
    return JSON.parse( localStorage.getItem(HMKEY))
}

/* 删token */
function removeToken(){
    localStorage.removeItem(HMKEY)
}

export { saveToken,getToken,removeToken }